package com.wjh.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wjh.mapper.ChangerecordMapper;
import com.wjh.pojo.Changerecord;
import com.wjh.service.ChangerecordService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Changerecord)表服务实现类
 *
 * @author makejava
 * @since 2023-12-20 14:16:58
 */
@Service("changerecordService")
public class ChangerecordServiceImpl extends ServiceImpl<ChangerecordMapper, Changerecord> implements ChangerecordService {

    @Override
    public List<Changerecord> queryById(Integer basemachineid) {
        LambdaQueryWrapper<Changerecord> queryWrapper =
                new LambdaQueryWrapper<>();
        queryWrapper.eq(Changerecord::getChangemachineid,basemachineid);
        List<Changerecord> list = list(queryWrapper);
        return list;
    }
}
